home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / biz / demo / Reflections4De.lha / Ref4Demo / skripte.lha / pyramid.men < prev    next >
Text File  |  1996-02-07  |  1KB  |  51 lines

  1. REFSKRIPT
  2. GET_REAL Breite der Pyramide
  3. RETURN_IF_ABBRUCH 1
  4. GET_RESULT breite
  5. GET_REAL Höhe der Pyramide
  6. RETURN_IF_ABBRUCH 1
  7. GET_RESULT hoehe
  8.  
  9. ; Dreiecks-Objekt erzeugen */
  10. OBJ_NEW  pyramide 3
  11. GET_RESULT pyr
  12. DIV breite 2
  13. GET_RESULT brhalb
  14. MUL brhalb -1
  15. GET_RESULT brhalb_min
  16.  
  17. ; 4 punkte der grundseite und 1 Punkt für spitze erzeugen
  18. ; 1.Pkt
  19. GEO_NEW_PT pyr
  20. GET_RESULT p1
  21. GEO_SET_PT pyr p1 brhalb_min brhalb_min 0
  22. ; 2.Pkt
  23. GEO_NEW_PT pyr
  24. GET_RESULT p2
  25. GEO_SET_PT pyr p2 brhalb brhalb_min 0
  26. ; 3.Pkt
  27. GEO_NEW_PT pyr
  28. GET_RESULT p3
  29. GEO_SET_PT pyr p3 brhalb brhalb 0
  30. ; 4.Pkt
  31. GEO_NEW_PT pyr
  32. GET_RESULT p4
  33. GEO_SET_PT pyr p4 brhalb_min brhalb 0
  34. ; 5.Pkt
  35. GEO_NEW_PT pyr
  36. GET_RESULT p5
  37. GEO_SET_PT pyr p5 0 0 hoehe
  38.  
  39. ; Jetzt die Dreiecke erzeugen
  40. ; Grundfläche
  41. DREI_NEW_DREI pyr p1 p3 p2
  42. DREI_NEW_DREI pyr p1 p4 p3
  43. ; Jetzt 4 seitenflächen
  44. DREI_NEW_DREI pyr p1 p2 p5 
  45. DREI_NEW_DREI pyr p2 p3 p5 
  46. DREI_NEW_DREI pyr p3 p4 p5 
  47. DREI_NEW_DREI pyr p4 p1 p5 
  48. PKL_ADD pyr
  49. PLOT_PKL
  50. RETURN 1
  51.